package com.lx.patterns.singleton.demo1;

/**
 * @ClassName Singleton
 * @Description: //饿汉式-静态变量
 * @Author: 落雪
 * @CreateDate: 2025/1/12 16:56
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/12 16:56
 * @UpdateRemark:
 * @Version: 1.0
 */

public class Singleton {

    private static Singleton instance = new Singleton();

    private Singleton(){};

    public static Singleton getInstance(){
        return instance;
    }

}